package unit_4;

public class Rectangle {
    double length, width;

    public double getLength() {
        return length;
    }
    public double getWidth(){
        return width;
    }

    public void setLength(double length){
        this.length = length;
    }
    public void setWidth(double width){
        this.width = width;
    }
    public double getPerimeter(){
        return 2 * (length + width);
    }
    public double getArea(){
        return length * width;
    }
    public Rectangle(double length, double width){
        this.width = width;
        this.length = length;
    }
    public Rectangle(){
        this(1.0,1.0);
    }
}
